package com.boot.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @TableName news_user
 */
@TableName(value ="news_user")
@Data
public class User {
    @TableId(type = IdType.AUTO)
    private Integer uid;

    private String username;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String userPwd;

    private String nickName;

    @Version
    @JsonIgnore
    private Integer version;

    @TableLogic
    @JsonIgnore
    private Integer isDeleted;
}